//
//  XOWMRSAHandler.h
//  sigleAPP
//
//  Created by SKL on 2017/11/13.
//  Copyright © 2017年 SKL. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    KeyTypePublic = 1,
    KeyTypePrivate
}KeyType;

@interface XOWMRSAHandler : NSObject
+ (instancetype)yjd_shareHandler;

- (BOOL)yjd_importKeyWithType:(KeyType)type andPath:(NSString*)path;
- (BOOL)yjd_importKeyWithType:(KeyType)type andkeyString:(NSString *)keyString;

//验证签名 Sha1 + RSA
- (BOOL)yjd_verifyString:(NSString *)string withSign:(NSString *)signString;
//验证签名 md5 + RSA
- (BOOL)yjd_verifyMD5String:(NSString *)string withSign:(NSString *)signString;

- (NSString *)yjd_signString:(NSString *)string;

- (NSString *)yjd_signMD5String:(NSString *)string;
- (NSString *)yjd_md5:(NSString *)input;

- (NSString *)yjd_encryptWithPublicKey:(NSString*)content;
- (NSString *)yjd_decryptWithPrivatecKey:(NSString*)content;


/**
 *@ pragma RC4解码
 */
+ (id)yjd_rc4_dec:(NSString *)input key:(NSString *)key;
- (id)yjd_rc4_dec:(NSString *)input key:(NSString *)key;



- (void)sp_getUsersMostFollowerSuccess;
@end
